bindgen
bindgen
automatically generates Rust FFI bindings to C (and some C++) libraries.
For example, given the C header doggo.h
:
typedef struct Doggo Doggo;
void ;
bindgen
produces Rust FFI code allowing you to call into the doggo
library's
functions and use its types:
/* automatically generated by rust-bindgen */
extern "C"
Users Guide
📚 Read the bindgen
users guide here! 📚
API Reference
API reference documentation is on docs.rs